package com.apexedu.portal.entity;

import javax.persistence.*;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 列表信息设置
 * Created by ly on 2014/8/19.
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "T_LBXX_SZ")
public class TLbxxSz implements Serializable {
    private String wid;
    private String portletid; // 组件id
    private String title; // 标题
    private String ptype; // 类别 1为标签页 0为列表
    private String color; // 字体颜色
    private String bgcolor; //背景颜色
    private Integer height; // 高度
    private String bgimage; // 背景图片
    private String more; // 是否显示“更多”
    private String moreurl; // “更多”跳转路径
    private String cal;//表格是否显示日程

    /**
     * 设置明细集合
     */
    private List<TLbxxSzMx> mxList = new ArrayList<TLbxxSzMx>();

    @Id
    @Column(name = "WID")
    public String getWid() {
        return wid;
    }

    public void setWid(String wid) {
        this.wid = wid;
    }

    @Basic
    @Column(name = "PORTLETID")
    public String getPortletid() {
        return portletid;
    }

    public void setPortletid(String portletid) {
        this.portletid = portletid;
    }

    @Basic
    @Column(name = "TITLE")
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Basic
    @Column(name = "PTYPE")
    public String getPtype() {
        return ptype;
    }

    public void setPtype(String ptype) {
        this.ptype = ptype;
    }

    @Basic
    @Column(name = "BGCOLOR")
    public String getBgcolor() {
        return bgcolor;
    }

    public void setBgcolor(String bgcolor) {
        this.bgcolor = bgcolor;
    }

    @Basic
    @Column(name = "COLOR")
    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    @Basic
    @Column(name = "HEIGHT")
    public Integer getHeight() {
        return height;
    }

    public void setHeight(Integer height) {
        this.height = height;
    }

    @Basic
    @Column(name = "BGIMAGE")
    public String getBgimage() {
        return bgimage;
    }

    public void setBgimage(String bgimage) {
        this.bgimage = bgimage;
    }

    @Basic
    @Column(name = "MORE")
    public String getMore() {
        return more;
    }

    public void setMore(String more) {
        this.more = more;
    }

    @Basic
    @Column(name = "MOREURL")
    public String getMoreurl() {
        return moreurl;
    }

    public void setMoreurl(String moreurl) {
        this.moreurl = moreurl;
    }

    @Basic
    @Column(name = "CAL")
    public String getCal() {
        return cal;
    }

    public void setCal(String cal) {
        this.cal = cal;
    }

    @Transient
    public List<TLbxxSzMx> getMxList() {
        return mxList;
    }

    public void setMxList(List<TLbxxSzMx> mxList) {
        this.mxList = mxList;
    }
}
